#ifndef APP_MOTOR_H
#define APP_MOTOR_H

#include "main.h"

#define CAM_FRAME_HEAD1 0xAA


typedef struct
{
    uint8_t rx_byte;
    uint8_t rx_buffer[5];
    uint8_t rx_buffer_backup[5];
    uint8_t rx_index;
    struct{
        int8_t flag;
        int16_t x;
        int16_t y;
    }data;
}CamHandle_t;

typedef enum
{
    mode1 = 0,
    mode2,
    mode3,
}Mode_e;

#endif